<?php
session_start();
   if (isset($_SESSION['username'])) {
      header("location:mainPage.php?request=login&action=loginRequest");
   } 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <!--<link rel="stylesheet" type="text/css" href="http://127.0.0.1/metocSpace/css/default.css" />-->
        <link rel="stylesheet" type="text/css" href="css/default.css" />
    </head>
    <body>
        <div align = "center"><h1>METOC Space Portfolio</h1></div>
        <div align="center"><a href="index.php"><img border="0" src="images/logo.jpg" /></a></div><br /><div align="center"></div>        
        <br/>
        <?php
        require_once 'session/sessionProcessing.php';
        echo getLoggedInAsLine()
        ?>
        <table class = "width100" cellspacing = "0">
            <tr>
                <td class="menu">
                    <a class="white" href="index.php">Home</a>
                </td>
            </tr> 
        </table>
        <br></br>
        <div align="center">
            <form name="login_form" method="post" action="login_page.php">
                <table class="width35Center" cellspacing="1">
                    <tr>
                        <td class="form-title">
                            <input type="hidden" name="return" value="index.php" />
                            Log In	</td>
                        <td class="right">
                        </td>
                    </tr>
                    <tr class="fieldLabel">
                        <td class="category">
                            Username	</td>
                        <td>
                            <input type="text" name="username" size="32" maxlength="32" value="" />
                        </td>
                    </tr>
                    <tr class="fieldLabel">
                        <td class="category">
                            Password	</td>
                        <td>
                            <input type="password" name="password" size="32" maxlength="1024" />
                        </td>
                    </tr>                    
                    <tr>
                        <td class="center" colspan="2">
                            <input type="submit" class="button" value="Log In" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>

        <br /><div align="center"><span class="bracket-link">[&#160;<a href="signupPage.html">Sign Up for a new account</a>&#160;]</span> &#160;</div><div class="warning" align="center">

        </div>
        <div class="warning" align="center">

        </div>

        <br />
        <hr size="1" />
        <table border="0" width="100%" cellspacing="0" cellpadding="0"><tr valign="top"><td>	
                </td><td>
                </td></tr></table>
    </body>
</html>
